package cn.zhz.util;

import java.text.SimpleDateFormat;

public class Tool {
    public static java.util.Date strToDate(String dateStr, String pattern)
            throws Exception {
        SimpleDateFormat sdf = new SimpleDateFormat(pattern);
        return sdf.parse(dateStr);
    }
}
